package com.aioething.iot.beans;

import lombok.Data;

@Data
public class RegisterResponse {
    public static final String INVALID_PRODUCT = "Invalid productId";
    public static final String PRODUCT_KEY_ERROR = "ProductKey error";
    public static final String DEVICE_NOT_ALLOWED = "Not allowed equipment";
    public static final String SUCCESS = "Success";

    private String code;
    private String error;
    private Body body;

    public void setPsk(String psk) {
        body = new Body();
        body.setPsk(psk);
    }

    @Data
    public static class Body {
        private String psk;
    }
}
